.class public Lcom/instagram/android/d/b/b;
.super Ljava/lang/Object;
.source "JsonParams.java"

# interfaces
.implements Lcom/instagram/android/d/b/e;


# instance fields
.field a:Lcom/fasterxml/jackson/a/h;

.field b:Ljava/io/StringWriter;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 18
    new-instance v0, Lcom/fasterxml/jackson/a/e;

    invoke-direct {v0}, Lcom/fasterxml/jackson/a/e;-><init>()V

    invoke-direct {p0, v0}, Lcom/instagram/android/d/b/b;-><init>(Lcom/fasterxml/jackson/a/e;)V

    .line 19
    return-void
.end method

.method public constructor <init>(Lcom/fasterxml/jackson/a/e;)V
    .locals 1
    .parameter

    .prologue
    .line 21
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 22
    new-instance v0, Ljava/io/StringWriter;

    invoke-direct {v0}, Ljava/io/StringWriter;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/d/b/b;->b:Ljava/io/StringWriter;

    .line 24
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->b:Ljava/io/StringWriter;

    invoke-virtual {p1, v0}, Lcom/fasterxml/jackson/a/e;->createGenerator(Ljava/io/Writer;)Lcom/fasterxml/jackson/a/h;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    .line 25
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    invoke-virtual {v0}, Lcom/fasterxml/jackson/a/h;->writeStartObject()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 28
    :goto_0
    return-void

    .line 26
    :catch_0
    move-exception v0

    goto :goto_0
.end method


# virtual methods
.method public a()V
    .locals 1

    .prologue
    .line 74
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    invoke-virtual {v0}, Lcom/fasterxml/jackson/a/h;->writeEndObject()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 78
    :goto_0
    return-void

    .line 75
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public a(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 67
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    invoke-virtual {v0, p1}, Lcom/fasterxml/jackson/a/h;->writeObjectFieldStart(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 70
    :goto_0
    return-void

    .line 68
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public a(Ljava/lang/String;D)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 46
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    invoke-virtual {v0, p1, p2, p3}, Lcom/fasterxml/jackson/a/h;->writeNumberField(Ljava/lang/String;D)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 49
    :goto_0
    return-void

    .line 47
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public a(Ljava/lang/String;I)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 39
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    invoke-virtual {v0, p1, p2}, Lcom/fasterxml/jackson/a/h;->writeNumberField(Ljava/lang/String;I)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 42
    :goto_0
    return-void

    .line 40
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 32
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    if-nez p2, :cond_0

    const-string p2, ""

    :cond_0
    invoke-virtual {v0, p1, p2}, Lcom/fasterxml/jackson/a/h;->writeStringField(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 35
    :goto_0
    return-void

    .line 33
    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .prologue
    .line 82
    :try_start_0
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    invoke-virtual {v0}, Lcom/fasterxml/jackson/a/h;->writeEndObject()V

    .line 83
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->a:Lcom/fasterxml/jackson/a/h;

    invoke-virtual {v0}, Lcom/fasterxml/jackson/a/h;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 87
    :goto_0
    iget-object v0, p0, Lcom/instagram/android/d/b/b;->b:Ljava/io/StringWriter;

    invoke-virtual {v0}, Ljava/io/StringWriter;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    .line 84
    :catch_0
    move-exception v0

    goto :goto_0
.end method
